using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Test.GolSig.Library.PositionSpecs
{
    [TestClass]
    public class WhenComparingPosition
    {
        [TestMethod()]
        public void GivenEqualPosition_ThenShouldBeEqual()
        {
            var pos1 = (new Position(0, 0));
            var pos2 = (new Position(0, 0));
            Assert.IsTrue(pos1.Equals(pos2));
        }
        [TestMethod()]
        public void GivenNotEqualPositionCol_ThenShouldBeNotEqual()
        {
            var pos1 = (new Position(0, 0));
            var pos2 = (new Position(0, 1));
            Assert.IsFalse(pos1.Equals(pos2));
        }
        [TestMethod()]
        public void GivenNotEqualPositionRow_ThenShouldBeNotEqual()
        {
            var pos1 = (new Position(0, 0));
            var pos2 = (new Position(1, 0));
            Assert.IsFalse(pos1.Equals(pos2));
        }
    }
}
